Due to the drastic fluctuation of glucose level in diabetic patients throughout a day, especially when they take a sweet breakfast, and greasy lunch and dinner, their insulin must be promptly measured invasively after each meal. However, invasive measurement of the blood glucose level (BGL) is painful and might lead to infection. In this paper, we design a hardware–software system for estimating BGL in a real-time manner, according to the amount of near-infrared (NIR) absorption at 950 nm. The received light wave is amplified and passed through a low-pass filter (LPF) to eliminate the irrelevant frequency components. We have executed our experiment according to three scenarios: (i) Certain amount of glucose is dissolved in water and the glucose concentration is measured by our equipment, (ii) 5-cm3 blood sample of participants is taken and the BGL is measured in a test tube by our apparatus and then this sample is moved to the gold-standard equipment and the actual value of BGL is measured. The measured voltage versus BGL in our designed optical equipment indicates a fairly linear relation between them. (iii) BGL is measured over the fingertip and compared to the gold-standard value. In this case, the measurement error does not exceed 25% and the voltage change with respect to the BGL shows a nonlinear behavior. The designed system has a low cost and provides an acceptable error, making it suitable to be commercialized for diabetic patients.