Sensor to measure the length of an stationary object

Hello everyone. Im new to arduino and this forum. Can someone suggest me a sensor that can measure the length of a small stationary object ?

Thnks :slight_smile: :slight_smile:

A ruler?

This one i want to monitor a specific length of fruit without going to the farm.

Fruit growing on a tree? That's not stationary. If you try to put the fruit in a box then the tree will try to get out of the box.

A video camera might be best. Webcams are cheap and plentiful.

A video camera might be best.

Don't forget to put a ruler near the fruit, so that the camera can capture that as well (for calibration purposes).