Thank you for sharing your SDM120 project. I am getting the following errors aswell. I installed the espsoftwareserial-master library as instructed in a previous post. "Sketch -> Include Library -> Add .zip library". However the errors remain.
Error Message:
Arduino: 1.6.9 (Windows 7), Board: "WeMos D1 R2 & mini, 80 MHz, 115200, 4M (3M SPIFFS)"
In member function 'float SDM<_speed, _rx_pin, _tx_pin, _dere_pin>::readVal(uint16_t)':
error: 'class SoftwareSerial' has no member named 'listen'
sdmSer.listen(); //enable softserial rx interrupt
error: 'class SoftwareSerial' has no member named 'end'
sdmSer.end(); //disable softserial rx interrupt
exit status 1
Error compiling for board WeMos D1 R2 & mini.
Your help would be greatly appreciated.
Thanks