A device for measuring temperature includes first and second temperature sensors enclosed in a first material having one or more material components, a contact surface for contacting a body whose temperature is to be measured, at least part of the contact surface being parallel to a lateral direction. The first and second temperature sensors are arranged at different depths from the contact surface and the net thermal conductivity across the device from the contact surface through the first and second temperature sensors is greater than the net lateral thermal conductivity of the device through the first and second temperature sensors.