First, sorry for the bad english.
I'm doing a project for graduation.
A Line Follow robot with fault tolerance.
For that I am using two physical LightSensors inside a class named "VirtualLightSensor".
The program only communicates with the virtual sensor.
The virtual sensor is responsible for identify and address the faults.
If both sensors are operating, then returned is the average reading of two.