Fixed bug when using explicit sensor ID
PWM works, GPIO revised a bit.