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
-2
votes
1 answer

Temperature converter

Im am trying to solve an issue. My teacher wants us to do a C# console with temperature converter from Celsius to Fahrenheit and switch. The problem is I continue getting errors in my coding and I don't know where I started wrong in order to get…
Dia Di
  • 1
-2
votes
2 answers

Convert API timezone in seconds to GMT timezone. Also convert API temperature to deg celcius

I am getting API weather data from some weather website. It has provided me timezone as 19800 which I want to convert to GMT + 05:30 but I am not able to do the same. Also it has given temperatures as 297.58 which I want to convert to deg…
Linus
  • 39
  • 4
-2
votes
1 answer

Read temperature with Arduino ATmega328P ADC with DTH11

I have a little problem for school and I have to read the temperature with Arduino from a DTH11 sensor and print it in serial, only in C language. Can someone help me with an example or something.
-2
votes
1 answer

Long Distance Temperature and Humidity Sensor for Raspberry Pi

Does anyone know of a good alternative to the DHT22 for temperature and humidity sensing on the Raspberry Pi? The DHT22 works great, but the wire length can only be a few feet long before you start running into problems. I want to connect a…
MattG
  • 1,682
  • 5
  • 25
  • 45
-2
votes
4 answers

Converting celsius and fahrenheit in Python 3

I got a confusing problem with my temperature converting program in Python, confusing for me at least since I'm new to this. I got two locations, Germany and USA, one country that the user is from and where the user is currently at. I'm just trying…
-2
votes
1 answer

Meteorological data re-organizing

I have an excel file with daily data of temperature from 1903-2018. I would like to re-organize these data. For example the data begins in 1903 and you can see in the first attached file that 2 columns are shown : 1st: the month with daily (1 to 31)…
Frank
  • 1
  • 1
-2
votes
1 answer

Temperature converter java

I have a temperature converter assignment. The code was provided and I have to add stuff to it to make it work. The question I have would be how would I return a char for scale when scales is a string array. Anything that has ** code ** is what I…
S.Okita
  • 1
  • 1
-2
votes
1 answer

Celsius to Fahrenheit conversion?

I wrote the following code in Ruby for Celsius to Fahrenheit conversion. I keep getting error. I am sure that I am still not clear on the concept of methods and that's why I cant figure it out. puts "Enter the Degree in c:" c = gets.chomp def…
-2
votes
1 answer

How to write x86 assembly code to check the effect of temperature on the performance of the processor

I have to write an x86 assembly code that should run on Intel x86 processor. Actually have to write like addition or move instructions to see the effect of these instructions of the performance of processor w.r.t temperature. That means my code…
qah
  • 27
  • 8
-2
votes
3 answers

I don't know how to make this equation work! please. Matlab

I'm trying to calculate the adiabatic flame temperature. I have this script, I'm trying to get a value of T out, how do I make it work? Or is there a better way of doing it? HRxn=((4*-393.5)+(5*-241.83)-(-124.73))*1000; %dH…
-2
votes
3 answers

C Program That asks If the User wants to Convert from C to F then does the conversion

I have an assignment to create a program that asks the user what temperature they want to convert and then convert it, but my if statements are not working. Here is my code: #include #include int main(void) { //Declare…
G. Santos
  • 3
  • 3
-2
votes
3 answers

Temperature Computation in Java?

Basically, the task is to compute 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, its temperature drops by (K * dt) degrees in each second,…
Federer
  • 1
  • 3
-2
votes
3 answers

Celsius to Fahrenheit program wont compile double to float error

/* This program will convert Celsius to Fahrenheit and display a table of their Fahrenheit equivalents. */ // ---------1---------2---------3---------4---------5--------6---------7 //…
none
  • 11
  • 5
-2
votes
1 answer

Input not being stored in a variable correctly

I am creating a program that serves as a temperature converter (CELSIUS TO KELVIN and VICE VERSA). But I'm having trouble with my codes (or maybe there's a problem in the compiler. Idk). At first, I thought that I was using a wrong formula. But as I…
sab
  • 11
  • 1
-2
votes
1 answer

programming C language temperature conversion

I just started programming and this is one of my first tasks. I really don't understand why this code is not working. any help would be greatly appreciated #include #include int main(int argc, const char * argv[]) { float…