Overexpression of a single enzyme in a multigene heterologous pathway may be out of balance with the other enzymes in the pathway, leading to accumulated toxic intermediates, imbalanced carbon flux, reduced productivity of the pathway, or an inhibited growth phenotype. Therefore, optimal, balanced, and synchronized expression levels of enzymes in a particular metabolic pathway is critical to maximize production of desired compounds while maintaining cell fitness in a growing culture. Furthermore, the optimal intracellular concentration of an enzyme is determined by the expression strength, specific timing/duration, and degradation rate of the enzyme. Here, we modulated the intracellular concentration of a key enzyme, namely HMG-CoA synthase (HMGS), in the heterologous mevalonate pathway by tuning its expression level and period of transcription to enhance limonene production in Escherichia coli. Facilitated by the tuned blue-light inducible BLADE/pBad system, we observed that limonene production was highest (160 mg/L) with an intermediate transcription level of HMGS from moderate light illumination (41 au, 150 s ON/150 s OFF) throughout the growth. Owing to the easy penetration and removal of blue-light illumination from the growing culture which is hard to obtain using conventional chemical-based induction, we further explored different induction patterns of HMGS under strong light illumination (2047 au, 300 s ON) for different durations along the growth phases. We identified a specific timing of HMGS expression in the log phase (3-9 h) that led to optimal limonene production (200 mg/L). This is further supported by a mathematical model that predicts several periods of blue-light illumination (3-9 h, 0-9 h, 3-12 h, 0-12 h) to achieve an optimal expression level of HMGS that maximizes limonene production and maintains cell fitness. Compared to moderate and prolonged transcription (41 au, 150 s ON/150 s OFF, 0-73 h), strong but time-limited transcription (2047 au, 300 s ON, 3-9 h) of HMGS could maintain its optimal intracellular concentration and further increased limonene production up to 92% (250 mg/L) in the longer incubation (up to 73 h) without impacting cell fitness. This work has provided new insight into the "right amount" and "just-in-time" expression of a critical metabolite enzyme in the upper module of the mevalonate pathway using optogenetics. This study would complement previous findings in modulating HMGS expression and potentially be applicable to heterologous production of other terpenoids in E. coli.