Cystinosis is a rare autosomal recessive illness in which cystine accumulates in lysosomes, causing crystallisation in important organs. Cysteamine, the only approved therapy, demands precise concentration control because of its therapeutic importance. Cysteamine detection methods, including fluorescence spectroscopy, chemical etching, and HPLC, need sophisticated sample preparation and expensive equipment. Electrochemical sensing provides a simpler alternative with higher sensitivity and selectivity. However, traditional carbon electrodes have limited sensitivity and detection limits. Nitrogen (N-CN), sulfur (S-CN), and nitrogen/sulfur co-doped (N, S-CN) graphitic carbon nitride materials were produced using a one-pot calcination of adenine and methionine precursors. N-CN-modified glassy carbon electrodes demonstrated higher electrocatalytic activity, quicker electron transfer, and increased selectivity, sensitivity, and stability for cysteamine detection. Structural and morphological characterisation of the synthesised materials was performed using various analytical techniques, including Fourier-transform infrared spectroscopy, scanning electron microscopy, transmission electron microscopy, Brunauer-Emmett-Teller plots, X-ray diffraction, and X-ray photoelectron spectroscopy. The sensor showed a linear relationship between anodic peak current and cysteamine concentration in the range of 0 µM to 1 mM, with a low detection limit of 82.5 nM (0.0825 µM). Moreover, the modified electrode exhibited good reproducibility and stability with a recovery rate of 95.5 % and a relative standard deviation (RSD < 5 %). Real-sample analysis revealed a good agreement between LSV and HPLC for detecting cysteamine in blood serum. The paper describes a unique metal-free N-CN synthesis utilising adenine, allowing effective electrochemical detection.