An automatic cleaning device 100 comprising an accelerometer 2 configured to be mounted to a door 10 which measures acceleration of the door and outputs an acceleration value. The device also comprises a sprayer 9 for storing cleaner and a driving module 6 for driving said sprayer to spray the cleaner, preferably onto a door handle 12. There is also a processing unit 1 electrically connected to the driving module and accelerometer which is configured to generate and transmit a driving signal to the driving module spray the cleaner when the acceleration value is greater than an acceleration threshold. The processing unit may also time the duration between generating a driving signal. Preferably the device further comprises a light measuring unit 3 which measures ambient light and a thermal sensing unit 4 which may be an infrared thermometer which may detect when a users hand is on the handle.