









| Pin Name | Type | Description |
|---|---|---|
| VCC | Power Input | Connect to 3.3V or 5V DC power supply. |
| GND | Ground | Connect to the ground of the power supply. |
| SIG | Analog Output | Outputs an analog voltage proportional to the skin's electrical conductance. |
Connecting the GSR Sensor:
Using the GSR Sensor in a Circuit:
Arduino UNO Example Code: Below is an example of how to use the GSR sensor with an Arduino UNO to read and display the sensor's output:
// Define the analog pin connected to the GSR sensor's SIG pin
const int GSR_PIN = A0;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(GSR_PIN, INPUT); // Set the GSR pin as an input
}
void loop() {
int sensorValue = analogRead(GSR_PIN); // Read the analog value from the sensor
// Convert the analog value to voltage (assuming 5V reference)
float voltage = sensorValue * (5.0 / 1023.0);
// Print the raw sensor value and voltage to the Serial Monitor
Serial.print("Raw Value: ");
Serial.print(sensorValue);
Serial.print(" | Voltage: ");
Serial.println(voltage);
delay(500); // Wait for 500ms before the next reading
}
Best Practices:
No Output or Constant Readings:
Fluctuating or Noisy Readings:
Low Sensitivity:
Incorrect Voltage Readings:
Q: Can the GSR sensor be used with a 3.3V microcontroller?
A: Yes, the sensor is compatible with both 3.3V and 5V systems. Ensure the reference voltage in the code matches the power supply voltage.
Q: How do I improve the accuracy of the sensor?
A: Use high-quality electrodes, ensure good skin contact, and calibrate the sensor for your specific application.
Q: Can the GSR sensor be used for continuous monitoring?
A: Yes, but ensure the sensor is periodically cleaned, and the electrodes are replaced as needed for long-term use.
Q: What type of electrodes should I use?
A: Use conductive adhesive electrodes or reusable metal electrodes designed for GSR measurements.