Endowing channel-interconnected photoelectrode with prominent light-absorbing and analyte-trapping is pivotal but challenging for implementing high-performance photoelectrochemical sensing system. Herein, we demonstrated an effective and controllable direct ink writing (DIW) 3D printing coupled with molecular imprinting technology for consistently fabricating microlattice-shaped photoelectrochemical sensor, with multiscale well-interconnected channels created by accessible alliance of regular macrochannels originated from layer-by-layer assembly of printed filaments and abundant microchannels built by jointing molecule-recognized polyaniline (PANI), photoactive TiO