Molecularly imprinted polymers (MIPs) can often bind target molecules with high selectivity and specificity. When used as MIPs, conductive polymers may have unique binding capabilities; they often contain aromatic rings, which have a great tendency to undergo covalent and hydrogen bonding interactions with similarly structured target (or template) molecules. In this work, an electrochemical method was used to optimize the synthetic self-assembly of poly(aniline-co-metanilic acid) and testosterone, forming testosterone-imprinted polymers (TIPs) on sensing electrodes. The linear sensing range for testosterone ranged from 0.1 to 100 pg/mL, and the limit of detection was as low as ~pM. Random urine samples were collected and diluted 1000 fold to measure testosterone concentration using the above TIP sensors in comparison with a commercial ARCHITECT ci 8200 system. The testosterone concentrations in the tested samples were in the range of 0.33± 0.09 to 9.13±1.33 ng/mL. The mean accuracy of the TIP-coated sensors was 90.3 ±7.0 %.