Using HC-SR04 (Ultrasonic sensor) with arduino
HC-SR04 is an ultrasonic sensor which works on the principle of ultrasonic waves. Basically it creates a pulse depending on the distance from the sensor. It has two eyes like structure one of which transmits the waves and the other acts as receiver. The sensor has 4 pins VCC, TRIG, ECHO, GND. When the sensor is […]