In this work, using an electrospinning process and a secondary electrostatic field on rectangular electrodes, a single-aligned nanofiber of silver nanoparticle (SNP)-TiO2 was fabricated for NH3 gas sensing with UV irradiation at room temperature. XRD, FE-SEM and UV spectroscopy adopted for characterization of the single nanofiber. The response of SNP-TiO2 single nanofiber sensor evaluated for 70 ppb to 12 ppm ammonia gas at room temperature up to an optimum temperature of 150 °C. The response of the sensor to 5ppm ammonia gas was 46.1 at an optimum temperature of 150 °C. However, the response was also evaluated at room temperature under 365 nm UV illumination. The response improved up to four times from 11 under dark condition to 45.1 under UV illumination for an ammonia gas concentration of 5 ppm. In addition, UV light exposure led to a considerable reduction in both response and recovery times. Moreover, the results for detecting other gases such as methanol, ethanol, propanol and water vapor compared to ammonia showed the best response for SNP-TiO2 sensor to ammonia gas, whereas its sensitivity to humidity was considerably low (about 9%). The results showed that the sensor can be used in related applications like breath analysis.