Nitride-based p-i-n sensors with indium-tin-oxide electrodes on Mg-doped AlGaN/GaN strain layer superlattice structure were fabricated and characterized. It was found that the fabricated sensors exhibit small dark current and large reverse breakdown voltage. With an incident wavelength of 355 run, we achieved a peak responsivity of 0.17 A/W which corresponds to 59% external quantum efficiency for sensors with 500 degrees C annealed ITO(70 nm) p-contacts.