arduino based elastic width measurement