Make sure you have created your sensor in the dashboard and have received the SSL certificate key pairs. If you need to do this process please refer to the Introduction to Sensors on Aquaponics AI. You can also download a sample repository to get started by going to our GitHub demo.

The system will send the SSL certificate, that is specific to the sensor you just created, to the project admin. The email will contain all the certificate information in order to connect securely with our system.

Here is an example of how to send your data to the dashboard using javascript, but you can use whatever language you would like as long as it follows the same basic principals and uses the SSL certificate to connect.

const awsIot = require('aws-iot-device-sdk')
// Connect the device to the service
const aai = awsIot.device({
keyPath: './certs/XXXXXXXX-private.key',
certPath: './certs/XXXXXXXX-cert.pem',
caPath: './certs/root-ca.pem',
clientId: 'SENSOR-ID',
host: ''
// Send your data as it arrives!
aai.publish(target, JSON.stringify({
dt: new Date().toISOString(),
v: message.toString()

You will experience a slight delay with the publishing if your data as your data is aggregated to a 5 minute interval. Our enterprise clients have more fine-grained exploration of the data. If you're interested in this level of analysis, contact us today.

For more information and options on setting up a MQTT client you can check out the GitHub respository. We recommend these libraries because they have great features like offline-queuing and intermittent connection handling for those of you who have weaker internet connections.

Did this answer your question?