Weight sensor

You're looking for a "load cell". You will also need an amplifier to go with it; I'd recommend an HX711 module for ease of use. There are multiple libraries available for working with the HX711.