#!/bin/bash PIN_PIR=3 # init gpio mode $PIN_PIR input # read gpio read $PIN_PIR