#include <LiquidCrystal.h>
LiquidCrystal LCD = LiquidCrystal(4,3,7,8,9,10);
//int sensor = A0;
void setup() {
LCD.begin(16,2);
}
void loop() {
int sensor = analogRead(A0);
float temperatura = sensor/1023.;
LCD.setCursor(0,0);
LCD.print("temp: ");
LCD.print(temperatura);
//LCD.clear();
//int lectura = analogRead(sensor);
//float voltaje = (lectura/1024)* 5;
//float temperatura = voltaje * 100;
//
//LCD.println(°C);
//sensor=
//colocar una alarma o alguna señalisacion en cierta temperatura
}