#!/usr/bin/env python import nxt.locator from nxt.sensor import * b = nxt.locator.find_one_brick() print 'Touch:', Touch(b, PORT_1).get_sample() print 'Sound:', Sound(b, PORT_2).get_sample()