Automated floor fan direction/alignment

I have a basic floor fan I control with an IR blaster and life is good, however often I need to use/stop the swing or the fan has just been facing the other way due to use and I’d like to get it pointing “back” the other way. This would be trivial to achieve with a door/window sensor, but I wonder if the battery life would be abysmal due to the regular use of swing and constant on-off cycle on the sensor?

Any other ways to solve this? Thanks.