stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. Stationeers wiki
  3. Devices
  4. Gas Sensor

Devices

Gas Sensor

Gassensor

PrefabStructureGasSensor Hash-1252983604in the hash lookup
Power paintable Game 0.2.6428.27798

Overview

Gas Sensor (StructureGasSensor) in Stationeers: device, hash -1252983604, 1 W. With build steps, 36 IC10 logic values and connection diagram.

The gas sensor measures the air where it is mounted: Pressure, Temperature, TotalMoles and the fraction of every gas (RatioOxygen, RatioCarbonDioxide and so on). All values are read-only – the sensor is the starting point of almost any control loop.

It has a single data port and needs 1 W. For gas in pipes there is the Pipe Analyzer.

One value needs care: Combustion does not only report a real fire but already a spark. A wall heater creates a spark every tick – so next to one the sensor reports fire all the time.

Since sensors usually come in numbers, addressing by name pays off: give all sensors in a room the same name and read the average with batch mode 0. A complete example is in IC10: control a device by name.

IC10 and logic

36 logic values, 36 readable and 0 writable.

  • Pressure R 5
  • Temperature R 6
  • RatioOxygen R 14
  • RatioCarbonDioxide R 15
  • RatioNitrogen R 16
  • RatioPollutant R 17
  • RatioMethane R 18
  • RatioWater R 19
  • TotalMoles R 66
  • RatioNitrousOxide R 83
  • PrefabHash R 84
  • Combustion R 98
  • RatioLiquidNitrogen R 177
  • VolumeOfLiquid R 182
  • RatioLiquidOxygen R 183
  • RatioLiquidMethane R 188
  • RatioSteam R 193
  • RatioLiquidCarbonDioxide R 199
  • RatioLiquidPollutant R 204
  • RatioLiquidNitrousOxide R 209
  • ReferenceId R 217
  • RatioHydrogen R 252
  • RatioLiquidHydrogen R 253
  • RatioPollutedWater R 254
  • NameHash R 268
  • RatioHydrazine R 283
  • RatioLiquidHydrazine R 284
  • RatioLiquidAlcohol R 285
  • RatioHelium R 286
  • RatioLiquidSodiumChloride R 287
  • RatioSilanol R 288
  • RatioLiquidSilanol R 289
  • RatioHydrochloricAcid R 290
  • RatioLiquidHydrochloricAcid R 291
  • RatioOzone R 292
  • RatioLiquidOzone R 293

Example: address by name

Reads Temperature, shows the value on the IC housing and writes –. Name the device with the labeller first; devices with the same name are addressed together.

# Gas Sensor address by name
define DEVICE -1252983604  # StructureGasSensor
define NAME HASH("Gas Sensor")  # name in game (labeller)
alias value r0

start:
yield
lbn value DEVICE NAME Temperature 0  # 0 = average of all with this name
bnan value start  # no device with this name
s db Setting value  # show on the housing
j start

Connections

1
Schematic: inputs left, outputs right, waste on top, power and data at the bottom. Position and spacing do not match the model.
  1. 1Data

Building and deconstruction

Grid: small grid (0.5 m) · mounting: on wall or floor

  1. 1

    Place

    Take back with Hand Drill

Total material

Deconstruction returns

Built with: Kit (Sensors)

Raw values from the game code (1)

Field names as in the game code, untranslated. Useful for mods and exact limits.

GasSensor.ConnectionTypeFlatExhaustive

See also

Esc
↑ ↓ selectEnter open/ opens search anywhere