An alternative which im thinking of is to modify the line and manually input the oglevel within $oglevel
$oglevel = "1.050"; (using this as an example)
$sql= "INSERT INTO `device`(`name`,`mac`,`time`, `og`, `fg`, `temp`, `abv`) VALUES('$brewname','$tiltStr','$now','$oglevel'...