Tungsten trioxide (WO3) detects UV radiation with great sensitivity while disregarding visible light, and it also has excellent electron mobility, allowing for efficient charge transport and fast response times. This work aims to develop a highly sensitive UV photodetector using WO3 material by optimizing the deposition parameter partial oxygen pressure (PaO2) and annealing the samples at various temperatures to determine the best PaO2 and annealing temperature that results in an improvement in the UV photodetector's sensitivity. The material WO3 was coated on glass substrates using DC magnetron sputtering while altering the PaO2 as 6 × 10−2 Pa, 4 × 10−2 -2 Pa, and 2 × 10−2 Pa, and then each as-deposited sample from varied PaO2 was annealed at temperatures ranging from 100°C to 400°C. When the sample's responses were compared, it was observed that the sample deposited at PaO2 2 × 10−2 Pa and annealed at 400 °C exhibited good photodetection capabilities, as evidenced by several characterization techniques such as SEM, XRD, and IV characterization. The work was subsequently carried out by evaluating the sample deposited at PaO2 2 × 10−2 Pa and annealed at 700 °C, which produced a good result for UV photodetection with the device's responsivity of 1e+4 A/W.