import serial

ser = serial.Serial()
port = input('COM Port [0]: ')
sensorName = input('SensorName [pr]: ')
sensorName = sensorName or 'photoresistor'
ser.port = port or 0
ser.open()
while True:
    print ser.read()
@@ -37,16 +37,20 @@
 %0Aport = 
+int(
 input('C
@@ -62,14 +62,15 @@
 rt %5B
-0
+3
 %5D: ')
+)
 %0Asen
@@ -112,69 +112,26 @@
 )%0Ase
-nsorName = sensorName or 'photoresistor'%0Aser.port = port or 0
+r.port = int(port)
 %0Aser
@@ -160,16 +160,17 @@
   print 
+(
 ser.read
@@ -171,8 +171,26 @@
 r.read()
+.decode(%22utf-8%22))%0A

Update SerialLogger.py