The circuit which compares the two voltages is:

Logic gate

LDR

Comparator

Sensor