A current sampling and holding circuit, and a sensor. The current sampling and holding circuit is used for offsetting a background light current in a photodiode (PD), and comprises a capacitor (CSH), and a transconductance-adjustable first transconductance amplifier (OTA1) for outputting a sampling current to the photodiode (PD) so as to offset the background light current in the photodiode (PD), wherein one end of the capacitor (CSH) is connected to a power source VDD end, and the other end of the capacitor (CSH) is connected to one end of the first transconductance amplifier (OTA1); and the other end of the first transconductance amplifier (OTA1) is used for connecting to the photodiode (PD) to output the sampling current to the photodiode (PD) so as to offset the background light current in the photodiode (PD). A transconductance-adjustable first transconductance amplifier (OTA1) is provided in the current sampling and holding circuit. When a background light current in a photodiode (PD) is increased, by means of increasing the transconductance of the first transconductance amplifier (OTA1), a voltage of a capacitor (CSH) can be prevented from varying in a relatively large range, such that the current sampling and holding circuit can offset a larger background light current.L'invention porte sur un circuit d'échantillonnage et de maintien de courant, ainsi que sur un capteur. Le circuit d'échantillonnage et de maintien de courant est utilisé pour décaler un courant de lumière d'arrière-plan dans une photodiode (PD), et comprend un condensateur (CSH) et un premier amplificateur de transconductance réglable par transconductance (OTA1) pour fournir un courant d'échantillonnage à la photodiode (PD) de manière à décaler le courant de lumière d'arrière-plan dans la photodiode (PD). Une extrémité du condensateur (CSH) est connectée à une extrémité de source d'alimentation VDD, et l'autre extrémité du condensateur (CSH) est connectée à une extrémité du premier amplificat