

The Grove Temperature Sensor, manufactured by Seeed Studio, is a versatile and easy-to-use module designed to measure ambient temperature. It provides an analog output proportional to the temperature, making it suitable for a wide range of applications. This sensor is commonly used in environmental monitoring, home automation, weather stations, and educational projects. Its plug-and-play design, compatible with the Grove ecosystem, ensures seamless integration with microcontrollers like Arduino and Raspberry Pi.








The Grove Temperature Sensor uses a 4-pin Grove connector. The pinout is as follows:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VCC | Power supply (3.3V to 5V DC) |
| 2 | GND | Ground |
| 3 | SIG | Analog signal output (temperature) |
| 4 | NC | Not connected |
Hardware Setup:
Software Setup:
// Grove Temperature Sensor Example Code
// This code reads the analog signal from the sensor and calculates the temperature.
// Ensure the sensor is connected to the A0 pin of the Arduino.
const int sensorPin = A0; // Analog pin connected to the sensor's SIG pin
float voltage; // Variable to store the sensor's output voltage
float temperature; // Variable to store the calculated temperature
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(sensorPin, INPUT); // Set the sensor pin as input
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
voltage = sensorValue * (5.0 / 1023.0); // Convert the analog value to voltage
temperature = (voltage - 0.5) * 100.0; // Convert voltage to temperature in °C
// The formula assumes a 10mV/°C scale factor and 0.5V offset at 0°C
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C"); // Print the temperature to the Serial Monitor
delay(1000); // Wait for 1 second before the next reading
}
No Output or Incorrect Readings:
Temperature Readings Are Inaccurate:
Serial Monitor Shows "0°C" Constantly:
Q1: Can this sensor measure negative temperatures?
Yes, the Grove Temperature Sensor can measure temperatures as low as -40°C. Ensure the formula in your code accounts for negative values.
Q2: Is this sensor compatible with Raspberry Pi?
Yes, the sensor can be used with Raspberry Pi via an ADC (Analog-to-Digital Converter) module, as Raspberry Pi lacks native analog input pins.
Q3: How do I extend the sensor's cable length?
You can use Grove extension cables, but ensure the total length does not introduce significant signal noise or voltage drop.
Q4: Can I use this sensor outdoors?
The sensor itself is not weatherproof. If used outdoors, it must be enclosed in a protective, ventilated housing to prevent damage from moisture or extreme conditions.