ardu temp
//usando sensor de temperatura
const int sensor = A0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int val = analogRead(sensor);
float mV =(val / 1023.0) *5000;
float GC= mV /10;
Serial.print(GC);
Serial.println("C");
delay(1000);
}
const int sensor = A0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int val = analogRead(sensor);
float mV =(val / 1023.0) *5000;
float GC= mV /10;
Serial.print(GC);
Serial.println("C");
delay(1000);
}
Comentarios
Publicar un comentario