comparison between pointer and integer ?

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 );

I just can't find any solution for that =(

if i understand your question correctly tuloLampo is an integer pointer and VS is a float?

if so you would be able to compare it like

if ((*tuloLampo)+5 > (int)(VS)) 
{
}

however casting the float to an int might be a problem because it will become a round number.

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 :grin:

Btw what was the idea of that added * ? :blush:

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".

some nice information about pointers can be found here http://www.cplusplus.com/doc/tutorial/pointers/

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]);

To add to the cornfusion, you can do this too:

Serial.println(0[p]);

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".

some nice information about pointers can be found here http://www.cplusplus.com/doc/tutorial/pointers/

That is a good reference. It looks to cover all the bases nicely.