The immunosensor performed well in identifying AFP in clinical samples, showing its potential for real-world use in early liver cancer detection. Here, AFP is linked to liver cancer.