Advertisement
rogerin

sensor temperatura

Nov 19th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. float controleTemperatura(){
  2. valorLido = analogRead(pinoLM35);
  3. temperatura = (valorLido * 0.00488);
  4. temperatura = temperatura * 100;
  5. Serial.print("Temperatura actual: ");
  6. Serial.println(temperatura);
  7. delay(1000);
  8. return temperatura;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement