Depending on your bike, the fuse box should have 1 or 2 spare slots for ie - alarm or other third party accessories.
But I would steer clear of connecting anything direct to the battery via a sensor. Lorries, loud exhausts, pops, bangs and knocks would mean a dead battery!. Stick to a good old...