Bolt module Tx,Rx

I want to recieve a sensor value from arduino and then depending on the condition i want to do certain operation in the bolt I have written the code as shown below but i am not getting as to how to recieve the data from bolt please do help me with this


import conf
from boltiot import Sms, Bolt
import json, time

minimum_limit = 50
maximum_limit = 60

mybolt = Bolt(conf.API_KEY, conf.DEVICE_ID)
sms = Sms(conf.SID, conf.AUTH_TOKEN, conf.TO_NUMBER, conf.FROM_NUMBER)

while True: 
    print ("Reading sensor value")
    response = mybolt.serialRead('RX') 
    data = json.loads(response)
    print("Sensor value is: " + str(data['value']))
        sensor_value = float(data['value']) 
        if sensor_value > maximum_limit or sensor_value < minimum_limit:
            print("Making request to Twilio to send a SMS")
            response = sms.send_sms("The Current temperature sensor value is " +str(sensor_value))
            print("Response received from Twilio is: " + str(response))
            print("Status of SMS at Twilio is :" + str(response.status))
    except Exception as e: 
        print ("Error occured: Below are the details")
        print (e)

If you read this link, you’ll see that the parameter for the serialRead is the ASCII equivalent of the last character of the data that is being received (of the data you want to receive) and not the Rx pin.
It might be a good idea to set this as 10 which is the ASCII equivalent for the newline character, as most of the values received end with a newline character.
Of course, you still have to make the proper Rx, Tx connections between the Arduino and Bolt, for the serial communication to work.