EMBEDDED SYSTEMS & MICROCONTROLLERS · PAGE 77
Project: Mini Weather Station
Several sensors, one display.
Connect a temperature and humidity sensor on I2C and a pressure sensor on the same bus, each with its own address. Read them once a minute.
Show the values on a character display and send them over UART to a computer. Store maximum and minimum values in non-volatile memory.
Sleep between readings and compare against a reference thermometer to check accuracy.