Machine Learning-Based On-Device Smoke and Flame Detection System Using Light Intensity of RGB Color Sensor | Synapse