We used to have a raccoon that was very clever and imaginative about how to get into our garage where we keep a 20-gal trash-can full of deer corn…. but last fall we were given a motion-detection overhead light for the garage to help the wife when she goes in and out toward the laundry room.
That raccoon has never given us a lick of trrouble since… but we’ve seen his footprints all the way up to our garage opening…where the light triggers “on”.
Not scientific… but I don’t care because it seems to work on raccoons.