# Writing an experimental profile based on a temperature automation dependent on a desired od reading

**URL:** <https://forum.pioreactor.com/t/writing-an-experimental-profile-based-on-a-temperature-automation-dependent-on-a-desired-od-reading/774>\
**Category:** Uncategorized\
**Created:** [April 30, 2025, 3:17pm UTC](https://forum.pioreactor.com/t/writing-an-experimental-profile-based-on-a-temperature-automation-dependent-on-a-desired-od-reading/774 "2025-04-30T15:17:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HillsLaura](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@HillsLaura](https://forum.pioreactor.com/u/HillsLaura)\
**Post date:** [April 30, 2025, 3:17pm UTC](https://forum.pioreactor.com/t/writing-an-experimental-profile-based-on-a-temperature-automation-dependent-on-a-desired-od-reading/774/1 "2025-04-30T15:17:31Z")

</div>

Hey all,

I’m trying to write an experiment profile that increases the target temperature from 30 to 42 during the exponential growth phase. So far, I’ve tried writing an experimental profile that will induce this temperature change once a certain od reading has been achieved. However, this profile has not worked even though the od condition has been met, and I’m curious if anyone has solutions or means to help.

Thanks!!

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [April 30, 2025, 3:26pm UTC](https://forum.pioreactor.com/t/writing-an-experimental-profile-based-on-a-temperature-automation-dependent-on-a-desired-od-reading/774/2 "2025-04-30T15:26:10Z")

</div>

Hi @HillsLaura, are you able to share the profile you’ve written? I can help debug.

---

<div class="post-metadata">

**Author:** ![HillsLaura](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@HillsLaura](https://forum.pioreactor.com/u/HillsLaura)\
**Post date:** [April 30, 2025, 3:55pm UTC](https://forum.pioreactor.com/t/writing-an-experimental-profile-based-on-a-temperature-automation-dependent-on-a-desired-od-reading/774/3 "2025-04-30T15:55:30Z")

</div>

Here’s what I used for the last run:

```auto
common:
  jobs:
    temperature_automation:
      actions:
        - type: when
          condition: ${{::od_reading:od1.od > 0.1}}
          hours_elapsed: 2.5
          actions:
            - type: update
              hours_elapsed: 0.5
              options:
                target_temperature: 42

```

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [April 30, 2025, 6:42pm UTC](https://forum.pioreactor.com/t/writing-an-experimental-profile-based-on-a-temperature-automation-dependent-on-a-desired-od-reading/774/4 "2025-04-30T18:42:47Z")

</div>

Hm, is your 90deg PD in the PD position 2 (labelled 2 on the top faceplate)? And the REF is PD position 1?

If so, you need to change `od1` to `od2`.

This is 100% not clear, and we will make this more obvious next release.

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [April 30, 2025, 7:00pm UTC](https://forum.pioreactor.com/t/writing-an-experimental-profile-based-on-a-temperature-automation-dependent-on-a-desired-od-reading/774/5 "2025-04-30T19:00:31Z")

</div>

Also, our docs referenced `od1`, which is _not_ the default (should be `od2`). This will also be updated.

---

<div class="post-metadata">

**Author:** ![HillsLaura](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@HillsLaura](https://forum.pioreactor.com/u/HillsLaura)\
**Post date:** [April 30, 2025, 7:59pm UTC](https://forum.pioreactor.com/t/writing-an-experimental-profile-based-on-a-temperature-automation-dependent-on-a-desired-od-reading/774/6 "2025-04-30T19:59:22Z")

</div>

Yes, my 90deg PD is position 2… so that definitely accounts for that. More or less like you said I used the examples on the docs which referenced od1 hence that being in the code. I’ll be running this update profile again tomorrow, and hopefully that minor fix works!
