The current-voltage (I-V) characteristics of single ZnO nanowires were measured varying with temperature and illumination. A model of the ZnO nanowire sandwiched by back-to-back diodes was utilized to explain the experimental data. Simulations of the I-V curves exhibited that the surface barrier height was independent of temperature from 180 to 290 K. This work also shows that the larger the incident laser power is, the smaller the contact surface barrier height will be. The photon induced reduction in the surface barrier height is attributed to the photogenerated holes, which result in a shielding effect on the surface trapped electrons.