Measuring arrangements characterised by the use of optical means for measuring length, width or thickness {by measuring distance between sensor and object }