An electronic device for sensing information on a home appliance or at a particular location, comprising: a body portion with an electric circuit; a wireless communication part provided in the body portion; a sensor part mounted to the body portion and comprising a plurality of sensors and sensing at least one sensing target; a cover portion detachably connected to the body portion so as to cover at least part of the body portion and electrically connected to the electric circuit; a first grounded part formed in the body portion and electrically connected to the cover portion; a second grounded part formed in the cover portion and electrically connected to the first grounded part of the body portion; a resistor part having a specified resistance value and comprised in the cover portion, wherein the resistor part is electrically connected to the first grounded part and the second grounded part; and a controller configured to: recognize the specified resistance value of the resistor part by the attachment of the body portion and the cover portion, wherein the specified resistance value of the resistor part is transmitted to the controller based on the electrical connections of the first grounded part and the second grounded part; determine at least one sensor to be operated among the plurality of sensors according to the specified resistance value of the resistor part comprised in the cover portion; and control the wireless communication part so as to transmit to an external device a wireless signal corresponding to the specified resistance value of the resistor part formed by the attachment of the cover portion and sensing information sensed by the at least one sensor comprised in the sensor part. a body portion with an electric circuit; a wireless communication part provided in the body portion; a sensor part mounted to the body portion and comprising a plurality of sensors and sensing at least one sensing target; a cover portion detachably connected to the body portion so as to cover at least part of the body portion and electrically connected to the electric circuit; a first grounded part formed in the body portion and electrically connected to the cover portion; a second grounded part formed in the cover portion and electrically connected to the first grounded part of the body portion; a resistor part having a specified resistance value and comprised in the cover portion, wherein the resistor part is electrically connected to the first grounded part and the second grounded part; and a controller configured to: recognize the specified resistance value of the resistor part by the attachment of the body portion and the cover portion, wherein the specified resistance value of the resistor part is transmitted to the controller based on the electrical connections of the first grounded part and the second grounded part; determine at least one sensor to be operated among the plurality of sensors according to the specified resistance value of the resistor part comprised in the cover portion; and control the wireless communication part so as to transmit to an external device a wireless signal corresponding to the specified resistance value of the resistor part formed by the attachment of the cover portion and sensing information sensed by the at least one sensor comprised in the sensor part. recognize the specified resistance value of the resistor part by the attachment of the body portion and the cover portion, wherein the specified resistance value of the resistor part is transmitted to the controller based on the electrical connections of the first grounded part and the second grounded part; determine at least one sensor to be operated among the plurality of sensors according to the specified resistance value of the resistor part comprised in the cover portion; and control the wireless communication part so as to transmit to an external device a wireless signal corresponding to the specified resistance value of the resistor part formed by the attachment of the cover portion and sensing information sensed by the at least one sensor comprised in the sensor part.