IMPORTANT The plastic in front of the sensor becomes cloudy over time
I bought 2 cat flaps about 2 years ago.
I clearly had the same problem as some other people: recently, the cat flap started detecting my cat’s microchip randomly.
So I unscrewed a few screws and removed the plastic cover in front of the sensor, and now the cat flap works again.
Hope this helps.