Fire detector is using a flame sensor that can detect fire or other light source with wavelength of 760 nm ~ 1100 nm light. This is helpful if you want to make your own fire detector/alarm for your own house. Let’s have a look on how it works.
This is the sample code used for this tutorial. Try it!