In this chapter, you’ll develop a system for the detection of fires or gas leaks with the Raspberry Pi board and the MQ2 gas sensor. This system will send the captured data to the remote ThingSpeak server and, when a gas increase is detected beyond a programed limit, send a message to your Twitter/X account. In this project, you’ll use an analog port and the Internet of Things (IoT) ThingSpeak server.
I have developed a gas leak alarm with a microcontroller before, but I have never monitored the values registered in ThingSpeak and sent an alert to ...