#include
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int sensorPin = A0;
void setup() {
lcd.begin(16, 2);
lcd.print("Temperature :");
}
void loop() {
lcd.setCursor(0, 1);
int sensorValue = analogRead(sensorPin);
float outputValue = (((float)(sensorValue))*5000.0)/1023.0;
lcd.print(outputValue);
}
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int sensorPin = A0;
void setup() {
lcd.begin(16, 2);
lcd.print("Temperature :");
}
void loop() {
lcd.setCursor(0, 1);
int sensorValue = analogRead(sensorPin);
float outputValue = (((float)(sensorValue))*5000.0)/1023.0;
lcd.print(outputValue);
}
Category
📚
Éducation