Nowadays ultra violet-visible (UV-Vis) spectrophotometers are widely used and is one of an important analytical instrument in modern day research. This work is conducted to determine oil quality discrimination of different selected oils using optical sensor, where the oil samples are analyzed within ultra violet (UV) spectrum, which ranges from 200nm to 400nm wavelengths. The oils extracted from five plants are analyzed based on the light absorption rate at different wavelengths. Different energy value is required for electron transition from lower level to the higher, due to different molecular structure of the main compound in the oil. The highest absorption rate at wavelength 393 nm is achieved from lemongrass oil, whereas the lowest absorption peak at 368 nm is observed from ginger oil.