add sample for i2c input