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.1.2 | Kernel: 3.4.10-SebastianFM-1.0.4
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 18.104.22.168 RC3
SD Card: SanDisk 64GB Class 10 microSDXC