Epitaxially matched (0001) Al2O3 single substrates are utilized to design p-n heterojunctions (p-NiO/n-ZnO) as they offer low defect density for device fabrication due to small lattice mismatches. Using the radio frequency sputtering technique, the NiO/ZnO thin film-based heterojunction has been fabricated by varying the n-type film's (ZnO) thickness for ultra-violet (UV) photodiode application. It has been investigated how different ZnO film thicknesses affect junction parameters and photoresponse properties. The high photosensitivity (∼ 104), enhanced current gain (∼ 105) and fast response obtained at very low UV intensity (0.62μW/cm2) at 300 nm wavelength are attributed to the internal gain mechanism (recombination tunnelling and space-charge limited current conduction with the remarkable effect of the presence of excess free oxygen) in these devices. The prepared heterojunction photodiode with high speed and deep-UV sensitivity can be a potential solution for visible blind UV detection.