Force Sensitive Resistor

This FSR will vary its resistance depending on how much pressure is being applied to the sensing area. The harder the force, the lower the resistance. When no pressure is being applied to the FSR its resistance will be larger than 1MΩ. This FSR can sense applied force anywhere in the range of 100g-10kg.

Code example

int sensorPin = A0;
int sensorValue = 0;

void setup() {
  Serial.begin(115200);
}

void loop() {
  
  sensorValue = analogRead(sensorPin);
  Serial.println(sensorValue);

  delay(50);
}

You can use the Arduino IDE Serial plotter to see the changes in real time:

Resources
Sparkfun producto page
Force Sensitive Resistor Hookup Guide

Select a repo