Sensor monitors hydraulic oil quality