Not sure if the recoil would damage the sensor or not. I'd be worried that the sensor would move about on its mountings. It only uses a thin steel band around the air tube to attach.
Do you not have an airgun that you can dry fire with? All you need is a click to activate the shot sensor.