It’s a simple problem.
This one gives you continuous values it’s just an LDR with a voltage divider
This also gives you a signal out but it’s amplified
This has a comparator circuit to output a 0v or VCC based on a threshold set by the potentiometer