That's definitely one way to approach it. You wouldn't have to attach something to the door that way, but you'd have to mess with wires external to the device.
If a tweet (or similar) makes a statement of fact, either mark it as "satire" in the body or provide the original source link backing up the statement (see rule 6)
It wouldn't be hard to do if I got a hall sensor, I just didn't want to have to mess with 3D modeling and printing a housing for it.
I wonder if contact strips could be glued to the sides of the thing the deadbolt goes into?
That's definitely one way to approach it. You wouldn't have to attach something to the door that way, but you'd have to mess with wires external to the device.