How IoT Gas Leak Detector Works