from machine import ADC
import time
# Sensor on ADC pin (GP26)
sensor = ADC(26)
print("Bluetooth Sensor Program Started")
print("Advertising Bluetooth...")
while True:
value = sensor.read_u16()
print("Sending to Smartphone:")
print("Sensor Value =", value)
print("----------------------")
time.sleep(2)
Loading
pi-pico-w
pi-pico-w