Light sensor randomly stops working

Hello.
Sorry if I’m posting to the wrong section.
I have two Philips outdoor motions sensor, that work also as light sensors.
I have set up two Node-red flows to get the lux value from both devices in order to trigger certain events if its under a certain value.
The problem is that randomly one of the sensor gets stuck on 0 (zero!), then it gets back to normal after some minutes/hours/days. The issue affects both devices but not necessarily at the same time.
And in the meanwhile they both continue working normally as motion/temperature sensors, so I’m pretty sure it’s not a communication problem.
This is my setup (on RPI3):
Home Assistant Core 2022.6.7
Home Assistant Supervisor 2022.07.0
Home Assistant OS 8.2

Any suggestion will be useful!