This research explores the preparation of polypyrrole (PPy) using chemical oxidation and its enhancement with graphene oxide (GO) for optical sensor applications. PPy was synthesized by polymerizing pyrrole monomers with ferric chloride (Fe2Cl3) as the oxidant. The resulting PPy was then combined with GO to form a composite material, aiming to improve its electrical and optical properties. Polypyrrole nanofibers were obtained and after adding graphene oxide, the sensitivity increased. Characterization techniques including UV-Vis spectroscopy, DC conductivity measurements, Field Emission Scanning Electron Microscopy (FESEM) and response of photocurrent analysis were employed. The incorporation of GO into PPy resulted in a significant reduction in the energy gap, increased DC conductivity, and enhanced photocurrent response, highlighting the potential of PPy-GO composites for advanced optical sensors. These findings suggest that PPyGO composites could offer improved performance in sensor applications where sensitivity and response speed are critical.