The alarm sensor can be operated by battery independent of the mains. However, it is possible to connect the alarm sensor to the mains via an external power supply unit.