Does something like a contact sensor exists?

It's just metal parts, and I only need to read if those are touching, so it was really that simple.
Thanks!