arduino nano WITH ultrasonic sensor and relay
how to set distance propose on off system
please any one help me
use this
if (distance < 25) /*if there’s an obstacle 25 centimers, ahead, do the following:
turn on your Realy by
digitalWrite(relaypin, HIGH);