I believe this was originally explored by Sam Henri Gold, at least that's the first time I saw it a while ago :)
Links: https://samhenri.gold/labs/20250906-lid-angle-sensor/ https://github.com/samhenrigold/LidAngleSensor
Reminds me of Sam Henri Gold's project: https://www.theverge.com/news/773472/a-bored-design-engineer...
Like so many things... fun, but been done.
THIS is whimsy.
repo link (featuring tls!): https://github.com/ronreiter/crack