使用光敏电阻,程序通用所有模拟量传感器
参见论坛中实例视频讲解http://bphero.com.cn/forum.php?mod=viewthread&tid=15&extra=page%3D1
上述网址视频全部可以免费下载(百度云)