#include"LiquidCrystal_I2C.h"
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define TRIGER 2
#define ECHO 3
void setup() {
// put your setup code here, to run once:
pinMode(OUTPUT, TRIGER);
pinMode(INPUT, ECHO);
// Inisialisasi LCD 16x2
lcd.begin(20, 4);
// Pindah ke baris kedua
lcd.setCursor(4, 0);
lcd.print("SENSOR JARAK");
}
void loop() {
// put your main code here, to run repeatedly:
long durasi
int
lcd.setCursor(0,1);
lcd. print(data jarak);
}