Is the interior light sensor or switch in the door panel?
No it wouldn't be, look around the door jam, look all the way around it to find it. Check your head light switch also, turn it clock wise to make sure it turns the dome light off.
There is no door switch, I have looked thoroughly several times, all around door and jam, both sides and the interior light, head light controls works fine as far as dash dimming control knob, you can adjust to low dim all the way and there is no change. If you put the fuse or the two bulbs in dome light they stay on, if you put just one bulb in it stays on. The switch at the dome light don't do anything, I have to pull all bulbs and the fuse out.
There is a door jam switch. Check this sight out to see a picture.......https://www.carid.com/2001-ford-ranger-electrical-parts/standard-door-jamb-switch-65011422.html
Looking for a Used Ranger in your area?
CarGurus has 5,013 nationwide Ranger listings starting at $999.
Search Ford Ranger Questions
Ford Ranger Experts