Questions tagged [temperature]

A simple definition of temperature is that it is a measure of heat dissipation, This tag can include programming related questions like temperature conversion, temperature detection through device sensors etc.

The temperature of a device is a quantitative measure which indicates how hot or cold the device is, temperature sensitive sensors can be used to make an alarming signal and can be programmed in various programming languages. It is measured by detection of heat radiation by a temperature sensing material, which may be then calibrated in any of various temperature scales, Celsius, Fahrenheit, Kelvin, etc.

Usage of Tag temperature

The tag temperature on stackoverflow can be used to ask questions related to programming a device or application, to sense temperature of a room/device. Tag temperature should be only used for questions related to programming, Please do not ask here questions related to physics or thermodynamics.

624 questions
-1
votes
1 answer

Interface DHT22 to FPGA - elbert v2

Now i make a circuit to measure temperature and humidity, then display on LCD. This is my code for DHT22, i use Elbert V2. After genarating my project, it did not go right. I tested and my program did not to come to "end_sl"( last state). And i…
-1
votes
1 answer

MATLAB - Create a temperature distribution graph

I have a meshgrid mask array that has the temperature distribution along the geometry (x,y,t). I need to make a graph of the temperature change along, let's say, y = 10. How would I go about doing this?
Justin Maller
  • 59
  • 1
  • 3
-1
votes
1 answer

Calculate temperature and precipitation by latitude

Is there an algorithm to calculate average temperature by latitude? I googled for a long time but could only find this (source): T = To – a.sin^2λ Where T = Temperature To = Average equatorial temperature a = a constant λ = latitude. But I have…
user1840267
  • 408
  • 1
  • 5
  • 18
-1
votes
1 answer

Python - Temperature Interpolation

I am currently trying to use the code provided on this website (https://unidata.github.io/MetPy/latest/examples/gridding/Point_Interpolation.html#sphx-glr-examples-gridding-point-interpolation-py) to create a map of taiwan with the linear…
-1
votes
2 answers

Time and temperature axes that are sorted by plot function in matab

I have an acquisition by a ph-meter, divided into 3 days. I have extracted the time in hh:mm:ss format for each day. It means that first day is from 12:32 to 14:39, second from 14:12 to 16:17 etc. Same for the temperature (from 23 to 24°, 2 day from…
-1
votes
1 answer

Lm-sensors return wrong result in gnome extension

I am writing a simple gnome extension to control my CPU temperature but i have a rare problem. When i execute sensors in shell i have this result: dell_smm-virtual-0 Adapter: Virtual device Processor Fan: 0 RPM CPU: +53.0°C Other: …
Toni Chaz
  • 651
  • 11
  • 22
-1
votes
4 answers

I am trying to convert Fahrenheit to Celsius but it's not working what am i doing wrong? - Javascript (needs to have a form and a clear button)

Form
-1
votes
1 answer

States of Water (temperature program) - C programming

I am working on a program where I have to use boolean operators in the if/else to get a temperature value and degree symbol from the user and print out the state (ice, liquid, steam) the water is in. Example input & output: Enter temperature,…
Markovnikov
  • 41
  • 4
  • 13
-1
votes
1 answer

Millis for arduino

I have two data bases that contain temperature data from an arduino... I want to send the data to these data bases for a minute, then after of send the data in the another data base, send it to the next data base (LATER OF TEN TIMES OF THE FIRST…
Maclos
  • 7
  • 1
  • 3
-1
votes
4 answers

Simple fix? expected '(' before '!' token

So I'm working with a DHT11 Therm/Humidity sensor. I've got it all to work, I'm just trying to mitigate the output if there is no change. Prior to adding this line, there was no issue. If you can show me my error rather than telling me a better way…
Nate
  • 15
  • 5
-1
votes
2 answers

Method for computing the time it takes for a variable to equal or be less than the target number? Java

The program is about computing the temperature of a warm object after it has been put in a freezer.The freezer temperature is constant at -20 degrees. Once the object is in the freezer, it's temperature drops by (K * dt) degrees in each second,…
Leonardo
  • 19
  • 1
  • 6
-1
votes
1 answer

while loops for temperature falling over time

I am new to MATLAB and am learning how to use while loops. I'm having trouble using the while loop to solve a problem where I need to calculate the temperature in a tank. The tank starts at 200 degrees and I need to find out how many days it takes…
-1
votes
4 answers

My JavaScript in not working in my temperature converter

I am writing a temperature converter and can't seem to figure out what is wrong with my javascript. I can't even get it to alert "running". My function used to be called convert, but I thought maybe that was a key word of js, so I changed it to…
-1
votes
1 answer

Convert every occurence of Fahrenheit to Celsius in the clipboard content in bash

Real sample text: Mealworms do reproduce in temperatures ranging from 65-100 F, but temperatures above 86 º F negatively impact growth and development (inhibiting pupation). The duration of the pupal stage will depend on temperature. It is…
donevan13
  • 3
  • 2
-1
votes
1 answer

I'm writing code to determine the state of water with if statements

I'm writing code to determine the state of water depending on the temperature in celsius and altitude, how can I make it so at the end, if the altitude is more than 300, it takes 1 less degree celsius for the water to boil and the outcome can be…