Default [Q] Proximity sensor

I was wounding if someone here could tell why Proximity sensor only works at night?
Thanks in advance