Raspberry pi 2 & dht11 sensor

I could, but it won’t solve the problem… It would be a rather complex solution which will require linux knowledge, modifying Makefile, etc.

That’s why it is recommended to use Node.js library (especially if there is a wrapper for DHT11).
It needs further investigation.