Apparatus is described for use with a burglar alarm that includes a detector configured to detect activity and to generate an activity-detection signal in response thereto. A sensor monitors a resting surface and generates a signal in response thereto. A control unit identifies a correspondence between (a) the activity-detection signal, and (b) the signal that is generated by the sensor. The control unit inhibits the burglar alarm from being triggered, in response to the correspondence. Other applications are also described.