goal is a better night’s sleep, don’t leave a light on because you expect it to prevent pests.
What About Security?
Another popular claim is that leaving a light on makes a hotel room look occupied and therefore discourages intruders.
While lights can sometimes create an appearance of activity, there’s no reason to treat a bathroom light as a reliable security measure.
For actual hotel-room security, use the door lock and any available security features, and follow the hotel’s safety instructions.
The Better Alternative: A Dim Night-Light
If you like