MQ7 Sensor Library

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:

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

MQ7 gas sensor v1.3.jpg

CS_MQ7.h (619 Bytes)

CS_MQ7.cpp (1.08 KB)

The lib is old…: try change “WProgram.h” to “Arduino.h”

Thanks. Did that and it works