Opioid use, particularly morphine, is linked to CNS-related disorders, comorbidities, and premature death. Morphine, a widely abused opioid, poses a significant global health threat and serves as a key metabolite in various opioids. Here, we present a turn-off fluorescent sensor capable of detecting morphine with exceptional sensitivity and speed in various samples. The fluorescent sensor was developed through the dimerization process of 7-methoxy-1-tetralone and subsequent demethylation to produce the final product. Despite morphine possessing inherent fluorophoric properties and emitting light in an approximately similar wavelength as the sensor’s fluorescent blue light, the introduction of the target molecule (morphine) in the presence of the sensor caused a reduction in the sensor’s fluorescence intensity, which is attributable to the formation of the sensor–morphine complex. By utilizing this fluorescence quenching sensor, the chemo-selective detection of morphine becomes highly feasible, encompassing a linear range from 0.008 to 40 ppm with an impressive limit of detection of 8 ppb. Consequently, this molecular probe demonstrates a successful application in determining trace amounts of morphine within urine, yielding satisfactory analytical results. The study also explores the effect of several variables on the sensor’s response and optimizes the detection of morphine in urine using a response surface methodology with a central composite design.