Ringer mode sensor not working

Hello! I have a Samsung Galazy s23 (android 14) and I have a problem with the ringer mode sensor. It does not seem to update. I tried to reboot my phone and then it did update the state, but it is not working anymore. Does anyone know how what could be the problem? Thanks.

Check the companion app logs to see if there is an error.