臺灣交流電的頻率是多少.... 100ms 量一次 會不會太慢了?作者: SoyaBean 時間: 2018-9-9 12:43 AM
this post is quite old but i am not sure whether u still need comment or not.
the logic looks fine for me except the variable declaration part.
change the DOUBLE sensorvalue to INT might help.
use typecasting if u want to change INT to DOUBLE.