In accordance with this invention, a novel electrical device, hereinafter ratiometric sensor includes a first photodiode that is connected in a voltage divider configuration with an electronic component, such as a second photodiode or a resistor, between a source of a first voltage and a source of a second voltage.