  <div class="row" style="margin-top: 20px;">
                <div class="col">
                    <label for="random{{sensor.id}}">Random:</label>
                </div>
                <div class="col">
                    <input class="form-check-input" type="checkbox" id="random{{sensor.id}}" 
                        {% if sensor.random: %}
                            checked
                        {% endif %}
                    />
                </div>
            </div>
            <div class="row