5-Hydroxymethylfurfural (5-HMF) is a heterocyclic compound with six carbons commonly found in heat-treated carbohydrate-rich foods. 5-HMF exceeding the specified limit is cytotoxic to the human body, and will be converted into carcinogenic substances (5-sulfoxide methyl furfural) after long-term accumulation in the body. Therefore, it is highly necessary to develop a sensitive and accurate detection method for 5-HMF in the field of food safety. In this study, a photoelectric sensing method was developed for the highly sensitive detection of 5-HMF using hollow TiO