A valuable visual colorimetric and electrochemical biosensor for porphyrin.