Text this: Development of optical sensor in measurement of apple quality