Please help with sketching or placing nodes

Hi everyone.
I want to connect one ultrasonic sensor to a servo motor and I want the servo rotate from 0 degree to 180 degree continuously when ultrasonic detects no body the servo has to continue its motion.

And After the ultrasonic detected someone so then it stops the servo and play a sound.

One sound for the morning time and one for afternoon and one for evening time.

Thanks in advance
Habib