How to detect when an gas alarm piezo (self drive - 3 wires) buzzer is active?