Light sensor

my nokia 3 has a problem with the brightness sensor. It stops working suddenly and I have to restart the phone.