An oxygen sensor is an electronic device that measures the proportion of oxygen (O2) in the gas or liquid being analyzed.
source