Text this: Optical Sensor and Its Application to Oil and Gas Industry