Detector, measuring device incorporated within workpiece holder