Problem is door ajar light comes on the dash, while driving it will come on and off randomly with its chime, and the dome light will some times flicker on and off, even though the whole time the driver door is closed and latched while driving.
How to fix, or remedy, haven’t had a dead battery yet from it so no worries yet, just an annoyance right now.
Might need a new door switch or yours is sticking.
The door switch on your car is in the door latch.
Tester
Make sure all the doors are solidly closed. Occasionally the trunk on my Corolla will come unlatched for no apparent reason and trigger the “door ajar” indicator.