Giant piezoresistive effect enables the development of ultrasensitive sensing devices to address the increasing demands from hi-tech applications such as space exploration and self-driving cars. The discovery of the giant piezoresistive effect by optoelectronic coupling leads to a new strategy for enhancing the sensitivity of mechanical sensors, particularly with light from light-emitting diodes (LEDs). This paper reports on the piezoresistive effect in a 3C-SiC/Si heterostructure with a bonded LED that can reach a gauge factor (GF) as high as 18 000. This value represents an approximately 1000 times improvement compared to the configuration without a bonded LED. This GF is one of the highest GFs reported to date for the piezoresistive effect in semiconductors. The generation of carrier concentration gradient in the top thin 3C-SiC film under illumination from the LED coupling with the tuning current contributes to the modulation of the piezoresistive effect in a 3C-SiC/Si heterojunction. In addition, the feasibility of using different types of LEDs as the tools for modulating the piezoresistive effect is investigated by evaluating lateral photovoltage and photocurrent under LED's illumination. The generated lateral photovoltage and photocurrent are as high as 14 mV and 47.2 μA, respectively. Recent technologies for direct bonding of micro-LEDs on a Si-based device and the discovery reported here may have a significant impact on mechanical sensors.