# turbidityCodeForUnit

> Maps a reported turbidity unit name to the welldot turbidity code. uT and FTU (formazin, method unidentified) map to the generic turbidity. Returns undefined for unrecognized names.

> **turbidityCodeForUnit**(`unit`): `"turbidity"` \| `"turbidity_ntu"` \| `"turbidity_fnu"` \| `"turbidity_fau"` \| `undefined`

Maps a reported turbidity unit name to the `welldot` turbidity code.
uT and FTU (formazin, method unidentified) map to the generic `turbidity`.
Returns `undefined` for unrecognized names.

## Parameters

### unit

`string`

## Returns

`"turbidity"` \| `"turbidity_ntu"` \| `"turbidity_fnu"` \| `"turbidity_fau"` \| `undefined`
