Nov 15, 2018· Interfacing MQ5 Gas Sensor Module to Arduino using Digital Out Pin. This is pretty simple. Connect the D0 pin of MQ5 module to any digital pin of arduino. Lets connect D0 to pin 7 of arduino. Now we need to give power supply (Vcc) and complete the circuit by connecting to ground (Gnd). Refer the circuit diagram given below.