It’s an interesting idea, but it won’t work as you’re imagining. Typical “contact sensors,” including this one, aren’t really “contact” based at all. They’re actually based on a magnet causing a thin metal reed to move. It is the metal reed that “makes contact” when it moves completing an electrical circuit inside the sensor device. The magnet piece does not need to actually touch the piece with the sensor, it just needs to get close enough to pull the reed magnetically.
So you can’t use a deadbolt to make contact with this type of sensor. Since it’s nonmagnetic, it wouldn’t move the reed inside the sensor piece.
I suppose you could attach a tiny magnet to the very end of the deadbolt and have it move close to the box containing the reed, but then you’d have to be burying The sensor box very far into the wall, the full distance of the deadbolt plus of course the length of the sensor itself. So personally, I wouldn’t use this shape of sensor for that, I’d use the smallest box piece I could find. But you would have constant danger of the magnet being knocked off the end of the deadbolt.
All of which is to say if you’re willing to put a sensor with a reed piece deep into the wall and you buy a magnet and glue it onto the end of the deadbolt you might be able to make it work. But I wouldn’t get this particular sensor, it’s too big.
Is this primarily an aesthetic issue?