Accurate sample heating is vital for nucleic acid extraction and amplification, requiring a sophisticated thermal cycling process in nucleic acid detection. Traditional molecular detection systems with heating capability are bulky, expensive, and primarily designed for lab settings. Consequently, their use is limited where lab systems are unavailable. This study introduces a technique for performing the heating process required in molecular diagnostics applicable for point-of-care testing (POCT), by presenting a method for crafting customized heaters using freely patterned nichrome (NiCr) wire. This technique, fabricating heaters by arranging protrusions on a carbon black-polydimethylsiloxane (PDMS) cast and patterning NiCr wire, utilizes cost-effective materials and is not constrained by shape, thereby enabling customized fabrication in both two-dimensional (2D) and three-dimensional (3D). To illustrate its versatility and practicality, a 2D heater with three temperature zones was developed for a portable device capable of automatic thermocycling for polymerase chain reaction (PCR) to detect Escherichia coli (E. coli) O157:H7 pathogen DNA. Furthermore, the detection of the same pathogen was demonstrated using a customized 3D heater surrounding a microtube for loop-mediated isothermal amplification (LAMP). Successful DNA amplification using the proposed heater suggests that the heating technique introduced in this study can be effectively applied to POCT.