Flame sensor
Short Pin
Long Pin
PCF8591
VCC
GND
SDA
SCL
Code Overview, Compile and run
We use the same script that we used earlier, by attaching the flame sensor, by introducing flame to it either by
lighter or candle the value will change. We can use that value to detect if there is currently flame or no flame at all.
Compile the script by going into the samples directory and running: python3 pcf8591.py
Raspberry Pi
5V
AINT0
Raspberry Pi
5V
GND
SDA1
SCL1
71 of 114
Need help?
Do you have a question about the Raspberry Pi & Arduino Starter Kit and is the answer not in the manual?