Using Sensors and the Serial Interface
Topics Covered:
What are sensors and how do they work?
Working with DHT11 or DHT22 (temperature & humidity sensors)
Using libraries in Arduino (introduction to third-party libraries)
Installing and using the DHT sensor library
Using the Serial Monitor and Serial Plotter for debugging and data visualization
Hands-On Activities:
Connect and test a DHT11 sensor
Log temperature and humidity every 5 seconds
Display sensor data in the Serial Monitor and Plotter
Build a simple temperature-based fan control system (concept)
Learning Goals:
Gain experience using sensors with data protocols (e.g., one-wire)
Practice using external libraries and reading documentation
Apply sensor data in decision-making within a sketch
Learn how to debug using real-time serial output
Homework / Practice:
Create a “Comfort Monitor” that shows messages based on temperature/humidity range
Submit a screenshot of Serial Plotter with 60 seconds of logged data