@startuml
start
if (type ?) equals (defined) then
:init sensor driver;
endif
if (pin ?) equals (defined) then
:configure input pin;
endif
stop
@enduml