A low-cost device for accurate and continuous measurements of fruit diameter