Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float temperature;
- int tempPin = 0; // Pin OUT from LM35 is connected to Pin A0
- void setup()
- {
- Serial.begin(38400); //baudrate adjust to your bluetooth module
- }
- void loop()
- {
- temperature = analogRead(tempPin);
- temperature = temperature * 0.48828125;
- Serial.print(temperature);
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement