For a fun university project, [Cengizhan Can] and friends decided to make an automated air freshener for one of their bathrooms at the Utrecht University in the Netherlands. Happening to have an old R2-D2 plastic candy jar, they decided to try to see if they could make it Star Wars themed.
They loaded up the R2-D2 shell with an Arduino, a ton of sensors (don’t worry, nothing for spying) and an actuator for triggering the air freshener. During normal operation the LCD will display ambient temperature information and the approximate number of air freshener shots remaining in the canister. An external door sensor checks to see if the stall is open, and coupled with a light sensor, only sprays freshener after use, and when no one is in the stall anymore.
They also added a motion sensor and an ultrasonic sensor, which could be used for determining occupancy as well — for a future upgrade we suppose.
For other fun air freshener hacks, did you know you can use one as a remote camera shutter release?