At the end of this chapter, we arrive at a point, where we must apply what we have learned so far. So, let us dive into the following exercises.
- In the photodiode example, add a red LED to the circuit (refer to the Chapter 3, Day 1 - Building a Simple Prototype). Make the red LED glow as soon as the measured voltage exceeds 0.55 volts.
- In the DHT11 example, add a red LED and a green LED. Modify the loop() function and add logic to make the green LED glow if the temperature is below 25 degrees centigrade. Make the red LED glow if the temperature is above 25 degrees centigrade. Do not make any of the LEDs glow if the temperature is equal to 25 degrees centigrade.
- In the soil moisture sensor example, include a Piezo buzzer and make a continuous sound as soon as the measured value of soil moisture on pin A3 falls below 400.