#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
}
void loop() {
int value = analogRead(A0);
float voltage = value / 1023.0 * 5000.0;
float current = voltage / 250.0;
lcd.setCursor(0,0);
lcd.print("G.tri dong dien: ");
lcd.setCursor(0,1);
lcd.print(current);
lcd.print(" mA");
delay(200);
}