Ultrasonic sensor with buzzer

Hi,

I recently started doing a project that had me using an ultrasonic sensor to create a warning system. I have gotten the sensor to detect objects but cant seem to have it make a sound when it does. I'm using sensor model sen136b5b, can someone please point me in the right direction as to what to do? Thanks

You want help with your code. But you won't show it to us. What do you really think are the chances we can help you to fix code we can't see?

Read this before posting, How to Use This Forum

Lambe45: cant seem to have it make a sound when it does.

That might be because it's a distance sensor not a beeper ;) so what have you got hooked up that will buzz or beep?

Have a look at the tone() function.

Use if / else to invoke tone() and noTone() as appropriate.