In a simple and instant procedure for detecting fish freshness, a hydrogel and hydrophilic pectin matrix membrane was used successfully as an optical pH sensor by immobilizing the chromoionophore ETH 5294 (CI), which is very selective and sensitive for the membrane. The Pe/CI optical pH sensor exhibited excellent linearity between pH 5 and pH 9, with a sensor response time of 5 min and reproducibility of 1.49% relative standard deviation (RSD). The sensor showed response stability for 15 days and a response reduction of 8.6%. The sensor’s capability was demonstrated by the detection of fish freshness for 17 days at 4 °C.