Remote Sensors Protocol

The Remote Sensors Protocol or Scratch Extension Protocol is an experimental extension feature that allows interaction between Scratch (1.3+) and other programs.

The experimental extension feature is enabled using the right-button menu on one of the two sensor blocks. When remote sensors are enabled, Scratch listens for connections on TCP port 42001.

Fonte e mais detalhes aqui.