HC-SR04 based intruder detector