bar 0 change 1 counter 0 block_value bar i 0 bar 1 i give system time to catch up 101 secondNumber Get what the other number from the other graph is and sum them 143858 sum ADD ADD secondNumber bar 2 WHILE While the mapped sensor value is not equal to the sum keep getting the sensor value and mapping it NEQ sum val i clear graph bar 0 -1 i 750 setBars This function chooses how many bars lite up. Using random uses too much memory so I played around trying to find what would feel random. It takes 22 times to repeat its pattern. bar ADD bar change 5 counter 1 EQ counter 5 change ADD change 1 5 counter 0 convertSensorVal This function works by taking the sensor value between 0 and 25 and mapping it to 0 thru 10 sensorVal 36523 val 0 upperVal 25.5 NEQ sensorVal 0 val 1 WHILE GT sensorVal upperVal upperVal 25.5 val 1 sensorVal 36523