Gemalto is now part of the Thales Group, find out more.

You are here

Thales IoT Developer Community

How to measure temperature with Java on 3G module

Showcase, April 6, 2016 - 3:02pm, 2241 views


The short example how to integrate a temperature sensor (thermistor, NTC type) with the Java 3G module.

In this case the sensor is attached to a Gemalto Concept Board via the Arduino-style header.

The current temperature is calculated based on values received by the module's built-in analog-to-digital converter (ADC).

Temperature sensor

Temperature sensor specifications:

-          Voltage: 3.3 ~ 5 V

-          *** power rating at 25℃: 300 mW

-          Zero power resistance: 10 KΩ

-          Operating temperature range: -40 ~ +125 °C

Hardware remarks:

- We used a Grove temperature sensor (****l:, but it can be replaced with temperature sensors from other manufacturers.

- It is recommended to tune the value conversion table, which is placed in the The best way is to take the conversion curve from the HD description of the sensor, and place approximately 10 values (voltage à temperature) in

- The sensor is connected to the A3 port (ADC3). It can be connected to any other ADC port (A0, A1, A2, A3 - on arduino ports). In such case, the ADC also ***** to be changed in

Bartłomiej Gemalto Moderator


Profile Picture
Michał - Gemalt...