The smoke detector device prototype will be built using a MQ2 series gas detector module and a Piezo Buzzer. The MQ2 series sensor is a general-purpose gas sensor: it can be used for sensing different types of gases (including LPG); today, we will use this sensor for detecting smoke.
As we have seen in the earlier chapters, a Piezo Buzzer is a small acoustic device that is capable of emitting sounds at various frequencies. In this example, we will write the corresponding Arduino sketch for detecting smoke and then buzzing the Piezo Buzzer five times at one second intervals. After completing Chapter 11, Day 9 - Long Range Wireless Communications which deals with GSM communications, you may use the GSM module with this chapter to send an SMS or dial a number automatically as soon as smoke gets detected. Wouldn't that be awesome!?
Apart from building...