The proximity and light sensor are different. The intensity sensor sure has more sensitivity at night, but the proximity sensor has its own IR. It will work just well in both day and night.
If you have this problem on all ROMs, you might have a hardware issue. Try updating your firmware.
Happy to help.
Jam that THANKS button. It only takes one finger.
Device: HTC SENSATION XE Beats Audio Z715e
Android Version: 4.4.4 | Kernel: 3.4.0-Sultan-Pure-CAF-v1.0.3
Firmware: 3.33.401.106 | Radio: 11.76C.3504.00P_11.29A.3504.18_M
HBoot: 1.29.0000 (locked, with S-OFF) | Recovery: 4ext Recovery Touch 22.214.171.124 RC2
SD Card: SanDisk 64GB Class 10 microSDXC