Ultrasonic sensor not turning off buzzer help

Hello, I'm following this guide on making an alarm clock (https://marobotic.com/2023/12/09/real-time-clock-with-alarm-using-arduino-and-rtc-ds3231/) but I'm adding an ultrasonic sensor (HC-SR04) so I can deactivate the alarm buzzer when it rings by covering the sensor with my hand.

The sensor is placed on a separate arduino uno board and connected by pins 11(Input), 12(Output), and GRD to the clock arduino uno board.

I have codes for both boards and they work fine independently but I have no idea how to connect the codes to make them work together. Can someone take a look at my code and guide me on what to do?

Alarm Clock Code: Upload files for free - AlarmClockCode.ino - ufile.io
Ultrasonic Sensor Code: Upload files for free - SensorCode.ino - ufile.io

3 posts were merged into an existing topic: How to add sensor to my project?