Project 3 : Temperature Alarm

Introduction

In this project we will create a temperature alarm whereby when the temperature exceeds certain degree, the alarm will sound.

Objective

In this project we will apply the knowledge from 

  1. Lesson 1:LED Blink

  2. Lesson 3:Siren

  3. Lesson 7:Temperature Sensor

Code

 

 

 

Result

 

In this project we shall see the siren and the led lights up when the temperature of the RP2040 exceeds 41 degree Celcius.

Hardware Components