Height Measurement Using Ultrasonic sensor
height measurement
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // Change 0x27 to 0x3F if not working
#define TRIG 9
#define ECHO 10
// Height of sensor from ground in cm
int sensorHeight = 200;
void set...
blog.aarav.com.np1 min read