We report the photoelectrochemical oxidation of glucose at an anatase TiO2 modified electrode for unique sensing application. Furthermore, electricity was extracted with a dual-functional photoelectrochemical glucose fuel cell.