Kirk_Nel
Published © CC BY-NC-SA

Nano Based Weather Station

A simple weather station that puts the temp on the Serial Monitor every 10 seconds.

BeginnerProtip1,496
Nano Based Weather Station

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Temperature Sensor
Temperature Sensor
×1
Jumper wires (generic)
Jumper wires (generic)
Only Need 3 If You Want To Color Code Use (Red, Black, White)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Wiring Diagram

Code

The Code

C/C++
Just Upload It And Open The Serial Monitor Then Every 10 Seconds The Temperature Will Show
/*
  Temp Sensor By Kirk Nel
*/

void setup()
{
  pinMode(A0, INPUT);
  Serial.begin(9600);

}

void loop()
{
  // Show The Temp Every 10 Secs
  Serial.println(-40 + 0.488155 * (analogRead(A0) - 20));
  // If you would like to change the delay time it is
  // printed in milliseconds
  delay(10000); // Wait for 10000 millisecond(s)
}
  // Copyright Kirk Nel

Credits

Kirk_Nel
0 projects • 0 followers

Comments