The present invention concerns an electronic device, particularly for detecting and control the environment of an animal housing, such as a cage, thus being able to automatically detect and control animal's immediate environment. Furthermore, the present invention also concerns a system comprising such device or a plurality of devices, and a method for automatic detection of cage condition and presence. The device, the system and the method according to the present invention allow to detect the presence and several parameters of the cage environment without interfering with the inside of the cage.