Abstract: According to various embodiments, there is provided an electronic device including a first housing having a bottom surface formed to be disposed on a specific portion of a top surface of a toilet, a second housing connected to one side of the first housing, a third housing connected to another side of the first housing and having a shape extending from a point connected to the first housing by a specific length in a direction associated with a first curvature, and a detection unit having a shape of a second curvature corresponding to the first curvature, and the detection unit is rotatably coupled to at least a portion of the third housing.