Because of the quick growth of electrical instruments used in noxious gas detection, the importance of gas sensors has increased. X-ray diffraction (XRD) can be used to examine the crystal phase structure of sensing materials, which affects the properties of gas sensing. This contributes to the study of the effect of electrochemical synthesis of titanium dioxide (TiO2) materials with various crystal phase shapes, such as rutile TiO2 (R-TiO2NTs) and anatase TiO2 (A-TiO2NTs). In this work, we have studied the effect of voltage on preparing TiO2 nanotube arrays via the anodization technique for gas sensor applications. The results acquired from XRD, energy dispersion spectroscopy (EDX), and field emission scanning electron microscopy (FE-SEM) elucidate that TiO2 was created. In addition, systematically examining the gas detection properties was also done. The gas sensor was produced from TiO2 nanotubes, and the gas-detecting features were directed at nitrogen dioxide (NO2), which is a hazardous gas. The sensor formed from TiO2 nanotubes detects NO2 gas at various temperatures, from room temperature to 300 oC, and it has good sensitivity to this gas. The results exhibit that the gas sensor that was synthesized at 30 V has good sensitivity and a short response time at room temperature for NO2 gas sensing.