Digital Fiber Sensor