Actually this library was working great when I was using it with my Arduino nano board. But now that I had to switch to ESP32 its giving me some troubles. My earlier impression was that it would be quite simple switching from Arduino to ESP32 as the ESP32 also supports the arduino framework but now well.....