Code: Select all
import serial
serialport = serial.Serial("/dev/serial0", 9600, timeout=0.5)
while True:
try:
command = serialport.read()
print str(command)
except:
pass
Code: Select all
import serial
serialport = serial.Serial("/dev/serial0", 9600, timeout=0.5)
while True:
try:
command = serialport.read()
print str(command)
except:
pass
Well there will be a multi sensors, including ground moister, temperature, photo, etc.davef21370 wrote:Which sensor ?
Dave.