The good properties of ITO substrate endow the as-grown InN thin films especially attractive for various optoelectronic applications. Herein, the InN thin films were prepared on the ITO substrates by magnetron sputtering. The effects of substrate temperature (Ts) on the structural, morphological, and optical properties of InN films were assessed by X-ray diffractometer, scanning electron microscope and ultraviolet–visible spectrophotometer. The combination of structural and morphological investigation suggested that the better InN thin film was obtained at 200 °C. Then, the variation of the optical band gap and transmittance with Ts was discussed. What's more, the p-NiO/n-InN heterojunction was trial-produced, and the carrier transport characteristics were studied in the range of 30–120 °C. The heterojunction exhibited excellent I–V characteristics at all operating temperatures. This work enriches the description of InN materials and devices, and provides a useful reference for the practical application of InN.