Detect when object is moved

I have a very simple project but I can’t figure out the proper sensor or module to use.
The concept is the following: I want to be able to detect when an object is picked up. Example: a glass sitting on a table. I want to detect when the glass is picked up.

There are quite a few sensors out there that would achieve this: weight, touch...
But I want a much simpler mechanism whereby the glass weight closes a switch, and opens it when the glass is picked up.

I’m just wondering if there is something out of the box that would help me achieve this

Thanks

IF I understand, you want to put a hole through the table so you can add a switch that the object will operate. Is this about the sum of it?

Paul

No, the object will be sitting on a shelf where this switch/module will be installed

How will you detect that the object is not moved, still in place?

I only need to know when the object is moved where I then take an action.
I imagine that something like this would get the job done https://www.amazon.com/dp/B00T6RCGNC/ref=cm_sw_r_cp_api_i_9zl1DbAF97NX9

I just don’t know how to go about wiring this button to an arduino and read its state.

TagLua:
No, the object will be sitting on a shelf where this switch/module will be installed

Ok, then you want to mount the switch through a hole in the shelf so the object can press down on it. Is this correct?

Paul

Sounds like what you need is a simple switch, maybe with a plate on it.

Maybe an FSR will also do the job, should be easier to hide (if that's important to you).

I would like to suggest three kinds of sensors:

  1. Force sensor, see project: Arduino - Detect Someone Taking Your Stuff and send Gmail

  2. Ultrasonic Sensor

  3. Magnatic Sensor, see Arduino -Monitoring Door Open