(Redirected from Sensor ()?)

Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.
Sensor ()?
<sensor [ v]?:: extension>
Category (PicoBoards in 2.0), Sensing (in 1.4)
Type Boolean
Introduced in 1.0
Removed in 3.0

The Sensor ()? block was a Sensing block and a boolean block. The block returned whether or not the button on a PicoBoard was being pressed or the specified port was connected.

The block could only be used with a PicoBoard.

It was also the only boolean block that could be displayed as a stage monitor (though before Scratch 2.0, there was also another boolean stage monitor.)


The drop-down menu.

The block had the following options in the drop-down menu:

  • button pressed
  • A connected
  • B connected
  • C connected
  • D connected

Example Uses

As this block let the project communicate with the outside world, it could be used to operate projects without using the keyboard and mouse; instead, the button could be pressed or the ports connected and disconnected.

Some common uses for the Sensor ()? block were:

  • Using a physical button to control a project
  • Check if wires are connected properly

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.