Undoped, doped and codoped ZnO thin films were synthesized on glass substrates using a spin coating technique. Zinc acetate dihydrate, ammonium acetate and aluminum nitrate were used as precursor for zinc, nitrogen and aluminum, respectively. X-ray diffraction shows that the thin films have a hexagonal wurtzite structure for the undoped, doped and co-doped ZnO. The transmittance of the films was above 80% and the band gap of the film varied from 3.20eV to 3.24eV for undoped and doped ZnO. An energy band diagram to describe the photoluminescence from the thin films was also constructed. This diagram includes the various defect levels and possible quasi-Fermi levels. A minimum resistivity of 0.0834Ω-cm was obtained for the N and Al codoped ZnO thin films with p-type carrier conductivity. These ZnO films can be used as a window layer in solar cells and in UV lasers.