Uniform ZnO nanorods were synthesized via the sol-gel process under mild conditions in which different ZnO nanostructures have been prepared by changing the pH of growth solution. It was seen that the optimum nanorods were grown at pH 11.33. The prepared ZnO nanostructures and morphologies were characterized by x-ray diffraction and scanning electron microscopy measurements. The ZnO one-dimensional nanostructures were found to have a wurtzite hexagonal crystalline structure and grow along the [001] direction. The optimum nanorods were about 1 mu m in length and less than 100 nm in diameter. The ZnO nanostructures have been tested for different concentrations and different operating temperatures for ethanol vapor in air and the surface resistance of the sensors has been evaluated as a function of different parameters. The gas sensor fabricated from ZnO nanorods grown in solution with a special pH exhibited good performance. The sensor response to 5000 ppm ethanol was up to about 2.5 at the operating temperature of 300 degrees C. The differences in gas-sensing performance between the sensors were analyzed based on the defects created in the nanorods during their fast growth. The correlations between material structures and the properties of the gas sensors are discussed.