Ok,so I have created an ultrasonic sensor,with the following code.I would like to fix a buzzer in the circuit when the output is less than 100 cm.I have no clue on how to go about this.Can anyone help me???

test.txt (936 Bytes)

Do you have a buzzer ? If you connect it directly between 5V and GND does it buzz or just click ?

Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks... Tom... :slight_smile: