When someone enters a protected place or crosses through the door or window, an alarm circuit is activated sounding an alarm. The circuit contains an Arduino, an ultrasonic sensor, and a buzzer. The task of the sensor is to send and receive ultrasonic waves. When there is a cut in the path of these ultrasonic waves, the resultant value changes in the serial port monitor commanding the Arduino circuit to signal the buzzer for alarm.