Sri et al. fabricated an MoS2-based nanosensor to detect Tumor Necrosis Factor (TNF) in cancer patients using the electrophoretic deposition method. Here, TNF is linked to cancer.