How should i wrote comparison to get it work without error message: (now error: ISO C++ forbids comparison between pointer and integer)
if ((tuloLampo)+5 > (int)(VS)) {
Value for tuloLampo is read from DS1820 sensor using OneWire.h and DallasTemperature.h library
Value for VS (float) is calculated from analog input: VS = ((analogRead(VSPin) - 102 )/ 6.14 );
Thank you, no more error messages when compiling but still no sense in that comparation. ... just a stupid spelling mistake...
And yes, data types are as you wrote. Some small rounding tolerances of temperature data can be accepted when just controlling the circulation pump of sun collectors
This might help, or this might make it more confusing. Hopefully the prior. If we have a pointer called p, then to access the data it's pointing to we use *p. You can also think of it as an array with only one item in it so you can access the same data by using the syntax p[0]. There is no difference between the two.
int *p;
int i = 100;
p = &i; // get p pointing to i
Serial.println(*p);
Serial.println(p[0]);
Dickvdsteen:
A * or asterisk as its called, in front of a pointer is called a dereference operator, it could be seen as (literally translated) "value pointed by".