Go Down

Topic: MQ7 Sensor Library (Read 412 times) previous topic - next topic

kelvin8

Hi there I am having some problems with my MQ7 gas sensors. They are the ones that come in a module. I attached a picture of them.

Currently they do not produce any reading and I tried using the library for them but keep getting the following error:

Code: [Select]

In file included from CS_MQ7.pde:18:0:
/Users/user/Documents/Arduino/libraries/CS_MQ7/CS_MQ7.h:17:22: fatal error: WProgram.h: No such file or directory
 #include "WProgram.h"
                      ^
compilation terminated.
Error compiling.


I have tried changing the WProgram.h to Arduino.h but still getting the same error

I also attached the cpp and h file from the library. Thanks

knut_ny

The lib is old..: try change "WProgram.h" to "Arduino.h"
Ny

kelvin8

Thanks. Did that and it works

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy