I am working on a project where I need to determine the density of a balsa wood strip.
I know the length and height of the strip. The two measures left to take are the weight and the thickness of the strip.
To achieve this, I am using an Arduino Uno. The weight measure must be accurate to 1 g; I achieved this with an HX711. In the thickness measurement I have problems, because it has to be accurate to 1 mm.
The strips are between 17 cm thick and 1 cm thick. I have tried using an IR sensor, ultrasonic sensor and laser sensor but all of them give me bad readings. This is because the environment where the machine has to work is in a balsa factory, where there is noise and dust.
How can I get this measurement as accurate as I need?